package com.itheima_01;

public class Test1 {
    public static void main(String[] args) {
        /*useStringHandler(new StringHandler() {
            @Override
            public void printMassage(int a, int b) {
                System.out.println(a+b);
            }
        });*/
        useStringHandler((a, b) -> {
            System.out.println(a+b);
        });
    }
    public static void useStringHandler(StringHandler stringHandler){
        stringHandler.printMassage(10,30);
    }
}
interface StringHandler{
    void printMassage(int a,int b);
}
